Lets you fly through a density space. In below you are flying through a space called 3dspace, which you define with make-density-space. The probe type is :linear, which means it just sums together the values in space-name pointed by the current dimension vector space coordinates.
Since the space is 3D space you need x, y and z vectors to represent the fly-through path.
(setq velocity-density
(vector-round 55 127
(fly-through 3dspace :linear
(vector-round 0 255 (gen-sin 0.1 1 256 -45)) ;x
(vector-round 0 255 (gen-sin 0.2 1 256 +45)) ;y
(vector-round 0 255 (gen-sin 0.3 1 256))))) ;z
The result is scaled to range 55 .. 127 to build up values suitable for velocity control. The number of values returned is determined by the length of the fly-through path, and is here 256 samples. Each coordinate vector must naturally has the equal number of values.
Setting probe sensitivity
The probe sensitivity can be set to :linear, :sigmoid or :gaussian mode. Linear gives you values that are the linear sum of the space density values. Sigmoid resembles S-curve and gives compressed low and high reactions. Gaussian reacts best on the values in between and treats both low and high values as the same.
Making fly-through melodies
To make a melody use vector-to-symbol as in below.